using System;
using CodeAngel.Domain.Framework;

namespace CodeAngel.Domain
{
	public partial class EntityDefCollection
    {

        #region Find

        /// <summary>
        /// Finds the first EntityDef within this collection with the identified Name.
        /// Returns null if not found.
        /// </summary>
        public EntityDef Find(string name)
        {
            foreach (var ThisED in this)
                if (ThisED.Name == name) return ThisED;
            return null;
        }

        #endregion
    }
}

